<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <%@ include file="./jsp/taglib.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css" media="all">
      @import url("../css/maven-base.css");
      @import url("../css/maven-theme.css");
      @import url("../css/site.css");
      @import url("../css/screen.css");
</style>
<link rel="stylesheet" href="css/print.css" type="text/css" media="print" />
<link rel="stylesheet" href="./style.css" type="text/css" media="screen" />
<base href="<%=basePath%>">
<title>Login</title>
<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<script type="text/javascript">
 function validar(){
 	if (document.forms[0].txtUsuario.value != "" && document.forms[0].txtPassword.value != ""){
 		return true;
 		}else{
 		alert("Datos insuficientes para iniciar");
 		document.forms[0].txtUsuario.focus;
 		return false;
 	}
 	return false;
 }
</script>
</head>
<body>
<br/><br/><br/>
<div id="header">
	<div id="logo">
<h1> Login </h1>
</div>
</div>
	<!-- end #logo -->
	<!-- end #header -->
<div id="page">
<center>
	<form action="./UsuarioController.html?opcion=Entrar" method="post">
		<table border="2">
		<tr>
			<td>Usuario</td><td><input type="text" name="txtUsuario"/></td>
		</tr>
		<tr>
			<td>Password</td><td><input type="password" name="txtPassword"/></td>
		</tr>
		<tr>
			<td colspan="2"><center><input type="submit" name="boton" onclick="return validar();" value="Entrar"/></center></td>
		</tr>
		
		</table>
	</form>
</center>
</div>
<!-- end #page -->
<div id="footer"> <center> <font color="Silver">Powered By Hibernate</font></center></div>
</body>
</html>